package com.leenleda.ips.entity;


import com.leenleda.ips.util.Utils;

import java.util.Date;

public class MediaEntity {
    private int position = -1;
    private Integer id;

    private String path;

    private String filepath;

    private Integer filetype;

    private String filesize;

    private Integer sortnum;

    private long oprtime;

    private String switchSpeed;

    private String fileName;

    public String getFileName() {
        return Utils.getStringValue(fileName);
    }

    public void setFileName() {
//        this.fileName = fileName;
        this.fileName = Utils.getName(getFilepath(), getId());
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPath() {
        return Utils.getStringValue(path);
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getFilepath() {
        return Utils.getStringValue(filepath);
    }

    public void setFilepath(String filepath) {
        this.filepath = filepath;
    }

    public Integer getFiletype() {
        return filetype;
    }

    public void setFiletype(Integer filetype) {
        this.filetype = filetype;
    }

    public String getFilesize() {
        return Utils.getStringValue(filesize);
    }

    public void setFilesize(String filesize) {
        this.filesize = filesize;
    }

    public Integer getSortnum() {
        return sortnum;
    }

    public void setSortnum(Integer sortnum) {
        this.sortnum = sortnum;
    }

    public long getOprtime() {
        return oprtime;
    }

    public void setOprtime(long oprtime) {
        this.oprtime = oprtime;
    }

    public String getSwitchSpeed() {
        return Utils.getStringValue(switchSpeed);
    }

    public void setSwitchSpeed(String switchSpeed) {
        this.switchSpeed = switchSpeed;
    }

    public int getPosition() {
        return position;
    }

    public void setPosition(int position) {
        this.position = position;
    }
}
